package org.dxw.service.impl;

import cn.hutool.core.collection.CollUtil;
import lombok.extern.slf4j.Slf4j;
import org.dxw.DO.OrderWideTalbeDO;
import org.dxw.DO.UserRoleMenuWideTableDO;
import org.dxw.service.OrderWideTableService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author dxw
 * @Date 2023/11/19 23:23
 * @Description
 */
@Service
@Slf4j
public class OrderWideTableServiceImpl implements OrderWideTableService {

    @Override
    public void updateData(List<OrderWideTalbeDO> orderWideTalbeDOS) {
        log.info("监听到表变动，开始刷新宽表数据");
        if(CollUtil.isEmpty(orderWideTalbeDOS)) {
            batchUpdateSomeRow(orderWideTalbeDOS);
        }else{
            wholeUpdate();
        }
    }

    private void batchUpdateSomeRow(List<OrderWideTalbeDO> userRoleMenuWideTableDOS){
    }

    private void wholeUpdate(){

    }


}
